import request from '@/utils/request'

const BASE_URL = 'http://101.37.38.67:7001'

export function getWorkOrders(params) {
  return request({
    url: `${BASE_URL}/workorder/pageQuery`,
    method: 'get',
    params
  })
}

export function cancelWorkOrder(id) {
  return request({
    url: `${BASE_URL}/workorder/cancelQuerys/${id}/cancel`,
    method: 'post'
  })
}